package com.fqgj.xjd.user.client;


import com.fqgj.common.api.Response;
import com.fqgj.xjd.user.client.enums.UserQuotaEvaluateEnum;
import com.fqgj.xjd.user.client.request.UserQuotaRequest;
import com.fqgj.xjd.user.client.response.UserQuotaResponse;

import java.util.List;

/**
 * Created by scrack on 2017/7/22.
 */
public interface UserQuotaService {

    /**
     * 获取额度
     *
     * @param userCode
     * @return
     */
    Response<UserQuotaResponse> getQuota(String userCode, String categoryCode);

    /**
     * 根据userCode列表获取额度列表
     * @param userCodes
     * @return
     */
    Response<List<UserQuotaResponse>> selectQuotaByUserCodes(List<String> userCodes);

    /**
     * 额度服务
     *
     * @param userQuotaRequest
     */

    Response<Boolean> saveQuotaResult(UserQuotaRequest userQuotaRequest);


    /**
     * 评估额度  详细过程
     * @param userCode
     * @param productCategory
     * @return
     */
    Response<Boolean> evaluateQuota(String userCode, String productCategory);

    /**
     * 获取用户额度状态
     * @param userCode
     * @param productCategory
     * @return
     */
    Response<Integer> getQuotaType(String userCode, String productCategory);
}
